package net.xiangcaowuyu.mybatis.service.impl;

import net.xiangcaowuyu.mybatis.entity.User;
import net.xiangcaowuyu.mybatis.mapper.UserMapper;
import net.xiangcaowuyu.mybatis.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author laughing
 * @date 2020-10-17
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    /**
     * 根据Id查找
     *
     * @param id
     * @return
     */
    @Override
    public User selectByPrimaryKey(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
